package org.jeecg.modules.demo.baseorderwriteoffrecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("base_order_writeoff_record")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_order_writeoff_record对象", description = "订单核销记录表")
public class BaseOrderWriteoffRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    @ApiModelProperty(value = "订单id")
    private String orderId;
    @ApiModelProperty(value = "项目id")
    private String orderProjectId;
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String orderCode;
    @Excel(name = "项目名称")
    @ApiModelProperty(value = "项目名称")
    private String orderProjectName;
    @ApiModelProperty(value = "会员id")
    private String memberId;
    @Excel(name = "会员姓名", width = 15)
    @ApiModelProperty(value = "会员姓名")
    private String memberName;
    @Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "会员手机号")
    private String memberPhone;
    /**
     * 创建日期
     */
    @Excel(name = "核销时间", width = 15)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    private String serveListJsonStr;
    private String commodityListJsonStr;
    private String storeId;
}
